home *** CD-ROM | disk | FTP | other *** search
- // dice.lib function display_damage()
- #include <iostream.h>
-
- void display_damage(int damage,int normal,int totaldice)
- {
- if (damage == 0)
- cout<<"Body damage is "<<totaldice<<"\t\t\t";
- if (damage == 1) {
- cout<<"Stun damage is "<<totaldice;
- cout<<" Body damage is "<<normal;
- }
- if (damage == 2)
- cout<<"3D6 roll is "<<totaldice<<"\t\t\t\t";
- }